package cn.com.dhc.danlu.model;

import android.os.Parcel;
import android.os.Parcelable;

public class CreateOrderCashOnDeliveryModels implements Parcelable {
    public static final Parcelable.Creator<CreateOrderCashOnDeliveryModels> CREATOR = new Creator<CreateOrderCashOnDeliveryModels>() {

        @Override
        public CreateOrderCashOnDeliveryModels createFromParcel(Parcel arg0) {
            CreateOrderCashOnDeliveryModels msg = new CreateOrderCashOnDeliveryModels();
            msg.paymentNo = arg0.readString();
            msg.orderNo = arg0.readString();
            msg.price = arg0.readString();
            msg.payType = arg0.readString();
            return msg;
        }

        @Override
        public CreateOrderCashOnDeliveryModels[] newArray(int arg0) {
            return new CreateOrderCashOnDeliveryModels[arg0];
        }
    };
    private String paymentNo;
    private String orderNo;
    private String price;
    private String payType;

    public String getPaymentNo() {
        return paymentNo;
    }

    public void setPaymentNo(String paymentNo) {
        this.paymentNo = paymentNo == null ? null : paymentNo.trim();
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo
                .trim();
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType == null ? null
                : payType.trim();
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price == null ? null
                : price.trim();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel arg0, int arg1) {
        arg0.writeString(paymentNo);
        arg0.writeString(orderNo);
        arg0.writeString(price);
        arg0.writeString(payType);
    }
}